package org.cs.publics.model;
// Generated 2018-12-28 17:39:08 by Hibernate Tools 5.2.3.Final

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * UserComment generated by hbm2java
 */
@Entity
@Table(name = "user_comment", catalog = "good_fresh")
public class UserComment implements java.io.Serializable {

	private Integer userCommentId;
	private GoodsImage goodsImage;
	private OrderInfo orderInfo;
	private UserInfo userInfo;
	private String userCommentInfo;
	private Date userCommentTime;
	private Integer likeId;
	private Date createTime;
	private Date updateTime;
	private String goodsHoldOne;
	private String goodsHoldTwo;

	public UserComment() {
	}

	public UserComment(GoodsImage goodsImage, OrderInfo orderInfo, UserInfo userInfo, String userCommentInfo,
			Date userCommentTime, Integer likeId, Date createTime, Date updateTime, String goodsHoldOne,
			String goodsHoldTwo) {
		this.goodsImage = goodsImage;
		this.orderInfo = orderInfo;
		this.userInfo = userInfo;
		this.userCommentInfo = userCommentInfo;
		this.userCommentTime = userCommentTime;
		this.likeId = likeId;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.goodsHoldOne = goodsHoldOne;
		this.goodsHoldTwo = goodsHoldTwo;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)

	@Column(name = "USER_COMMENT_ID", unique = true, nullable = false)
	public Integer getUserCommentId() {
		return this.userCommentId;
	}

	public void setUserCommentId(Integer userCommentId) {
		this.userCommentId = userCommentId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "GOODS_IMAGE_ID")
	public GoodsImage getGoodsImage() {
		return this.goodsImage;
	}

	public void setGoodsImage(GoodsImage goodsImage) {
		this.goodsImage = goodsImage;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ORDER_INFO_ID")
	public OrderInfo getOrderInfo() {
		return this.orderInfo;
	}

	public void setOrderInfo(OrderInfo orderInfo) {
		this.orderInfo = orderInfo;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "USER_INFO_ID")
	public UserInfo getUserInfo() {
		return this.userInfo;
	}

	public void setUserInfo(UserInfo userInfo) {
		this.userInfo = userInfo;
	}

	@Column(name = "USER_COMMENT_INFO", length = 65535)
	public String getUserCommentInfo() {
		return this.userCommentInfo;
	}

	public void setUserCommentInfo(String userCommentInfo) {
		this.userCommentInfo = userCommentInfo;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "USER_COMMENT_TIME", length = 19)
	public Date getUserCommentTime() {
		return this.userCommentTime;
	}

	public void setUserCommentTime(Date userCommentTime) {
		this.userCommentTime = userCommentTime;
	}

	@Column(name = "LIKE_ID")
	public Integer getLikeId() {
		return this.likeId;
	}

	public void setLikeId(Integer likeId) {
		this.likeId = likeId;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "CREATE_TIME", length = 19)
	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "UPDATE_TIME", length = 19)
	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "GOODS_HOLD_ONE", length = 25)
	public String getGoodsHoldOne() {
		return this.goodsHoldOne;
	}

	public void setGoodsHoldOne(String goodsHoldOne) {
		this.goodsHoldOne = goodsHoldOne;
	}

	@Column(name = "GOODS_HOLD_TWO", length = 25)
	public String getGoodsHoldTwo() {
		return this.goodsHoldTwo;
	}

	public void setGoodsHoldTwo(String goodsHoldTwo) {
		this.goodsHoldTwo = goodsHoldTwo;
	}

}
